package f_collection;

class StackData{
	String irum;
	int age;
	
	public StackData(String n, int a){
		this.irum = n;
		this.age = a;
	}
	@Override
	public boolean equals(Object o){
		boolean b=false;
		
		StackData d = (StackData)o;
		if(irum.equals(d.irum) && age == d.age) b=true;
		else b = false;
		return b;
	}
	public int hashCode(){
		return (irum + age).hashCode();
	}
	
}